var t = getApp();

Page({
    data: {
        language: "",
        all_amount: []
    },
    onLoad: function(t) {},
    onReady: function() {
        var t = wx.getStorageSync("langIndex");
        this.setData({
            language: t.en
        });
    },
    onShow: function() {
        this._initData(), this._getData();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    _getData: function() {
        var n = this, a = t.getNetAddresss("finance.plugin-settle.plugin-list");
        t._getNetWork({
            url: a,
            success: function(t) {
                var a = t.data;
                1 == a.result && n.setData({
                    all_amount: a.data
                });
            },
            fail: function(t) {
                console.log(t.msg);
            }
        });
    },
    toEarningList: function(t) {
        var n = t.currentTarget.dataset.itemdata;
        wx.navigateTo({
            url: "/packageA/member/extension/earningList/earningList?plugin_type=" + n.type + "&plugin_text=" + n.title
        });
    },
    _initData: function() {
        this.setData({
            all_amount: []
        });
    }
});